from rest_framework.pagination import PageNumberPagination,LimitOffsetPagination

class MyPagePaginations(PageNumberPagination):
    page_size = 2
    page_size_query_param = 'size'
    max_page_size = 5

class MyPagePaginations1(LimitOffsetPagination):
    max_limit = 100

